
package fileby.gui.magicbox;

import com.google.inject.Inject;
import fileby.core.IDisplayableFile;
import fileby.ctrl.sidebar.ISideBarItemListenerProvider;
import fileby.ctrl.actions.IActionProvider;

/**
 *
 * @author Jacob
 */
public class MagicBoxItemFactory implements IMagicBoxItemProvider {

    private IActionProvider actionProvider;
    private ISideBarItemListenerProvider listenerProvider;

    @Inject
    public MagicBoxItemFactory(IActionProvider actionProvider,
            ISideBarItemListenerProvider listenerProvider) {

        this.actionProvider = actionProvider;
        this.listenerProvider = listenerProvider;
    }

    public MagicBoxItem create(IDisplayableFile f) {
        return new MagicBoxItem(f, actionProvider, listenerProvider);
    }

}
